/*
 *    This file is part of BlobDB.
 *
 *    BlobDB is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    BlobDB is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with BlobDB.  If not, see <http://www.gnu.org/licenses/>.
 *    
 *    Copyright(c) 2011 Michael Kankkonen
 *    http://www.vnetcon.org
 */


package org.vnetcon.blobdb.database.backend.memory.mdo;



public class Table {

    private String tableKey;
	private int tableID;
	private String schema;
	private String tableName;
	private byte[] columnInfo;
	private int rowsize;
	private int maxrows;

	
	public Table(int tableID, String schema, String tableName, int rowsize, int maxrows){
		this.schema = schema;
		this.tableName = tableName;
		this.rowsize = rowsize;
		this.maxrows = maxrows;
		this.tableID = tableID;
    	PMF.hTable.put(tableID, this);
	}

	public void setTableKey(String tableKey){
		this.tableKey = tableKey;
	}

	public String getSchema() {
		return schema;
	}


	public void setSchema(String schema) {
		this.schema = schema;
	}


	public String getTableName() {
		return tableName;
	}


	public void setTableName(String tableName) {
		this.tableName = tableName;
	}


	public byte[] getColumnInfo() {
		return columnInfo;
	}


	public void setColumnInfo(byte[] columnInfo) {
		this.columnInfo = columnInfo;
	}


	public String getTableKey() {
		return tableKey;
	}

	public int getRowsize() {
		return rowsize;
	}

	public int getMaxrows() {
		return maxrows;
	}

	public void setMaxrows(int maxrows) {
		this.maxrows = maxrows;
	}

	public int getTableID() {
		return tableID;
	}

	public void save(){
	}
	
}
